package interfaces;

import bean.Role;

/**
 * @author yakimovich
 */
public interface RoleDao {

	/**
	 * Create in the Roles table row with this role.
	 *
	 * @param role
	 */
	public void create(Role role);

	/**
	 * Update in the Roles table row with this role.
	 *
	 * @param role
	 */
	public void update(Role role);

	/**
	 * Remove in the Roles table row with this role.
	 *
	 * @param role
	 */
	public void remove(Role role);

	/**
	 * Find in the Roles table role with the specified name.
	 *
	 * @param name
	 *            name of a role
	 * @return role with the specified name
	 */
	public Role findByName(String name);
}
